package com.cskaoyan.mapper.marketMapper;

import com.cskaoyan.bean.marketBean.MarketRegion;
import com.cskaoyan.bean.marketBean.MarketRegionExample;
import com.cskaoyan.bean.vo.zy.ZYChildrenBean;
import com.cskaoyan.bean.vo.zy.ZYChildrenBeanX;
import com.cskaoyan.bean.vo.zy.ZYMarketRegionListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketRegionMapper {
    long countByExample(MarketRegionExample example);

    int deleteByExample(MarketRegionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketRegion record);

    int insertSelective(MarketRegion record);

    List<MarketRegion> selectByExample(MarketRegionExample example);

    MarketRegion selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketRegion record, @Param("example") MarketRegionExample example);

    int updateByExample(@Param("record") MarketRegion record, @Param("example") MarketRegionExample example);

    int updateByPrimaryKeySelective(MarketRegion record);

    int updateByPrimaryKey(MarketRegion record);

    List<ZYMarketRegionListVO> selectProvinceByType();

    List<ZYChildrenBeanX> selectMunicipalityByPid(int id);

    List<ZYChildrenBean> selectdistrictByPid(int id);
}
